package com.tuanzi.loan.business.repository.statistics;


import com.tuanzi.loan.business.entity.statistics.AdverChannelTypeUser;
import com.tuanzi.loan.business.repository.collaborate.custom.AdverChannelTypeUserRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Simon
 * @date 2019/07/29 14:15
 */
public interface AdverChannelTypeUserRepository extends AdverChannelTypeUserRepositoryCustom, JpaRepository<AdverChannelTypeUser, Long> {

    AdverChannelTypeUser findByUserName(String account);

    AdverChannelTypeUser findOne(Long id);

    List<AdverChannelTypeUser> findCurrentUserChannels(String account);

    void delete(String account);
}
